import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('gov_region')
export class Region {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  code: string;

  @Column()
  name: string;

  @Column()
  level: number;

  @Column({ name: 'parent_id' })
  parentId: number;
}
